package com.daka.dao;

import com.daka.entity.Version;
import com.daka.mybatis.SQLMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author beliveli on 2016/3/31 0031.
 */
@Repository(value = "appVersionMapper")
@SQLMapper
public interface AppVersionMapper {
    List<Version> select(Version version);

    List<Version> selectAll();

    Integer save(Version version);

    int updateStatus(@Param("status") Integer status, @Param("versionId") Integer versionId);

    Version selectById(int versionId);

}
